#include<iostream>
using namespace std;

int main()
{
	double h;
	cin >> h;
	int i = 1;
	double sum = h;
	do
	{
		h /= 2;
		sum += h * 2;
		i++;
	} while (i <= 9);
	cout << sum << endl;
	cout << h / 2  << endl; 
	
	return 0;
}
